package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 账户表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "account")
public class Account implements Serializable {
    /**
     * 账户id
     */
    @TableId(value = "account_id", type = IdType.INPUT)
    private Integer accountId;

    /**
     * 账户名称
     */
    @TableField(value = "account")
    private String account;

    /**
     * 币别id
     */
    @TableField(value = "default_currency_id")
    private Integer defaultCurrencyId;

    /**
     * 银行账户
     */
    @TableField(value = "bank_account")
    private String bankAccount;

    /**
     * 开户名
     */
    @TableField(value = "account_name")
    private String accountName;

    /**
     * 开户行
     */
    @TableField(value = "opening_bank")
    private String openingBank;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 状态
     */
    @TableField(value = "`state`")
    private String state;

    private static final long serialVersionUID = 1L;
}